export class UserDto { @IsEmail() readonly email: string; @IsOptional() @IsEnum(Permissions, { each: true }) readonly permissions: Permissions[]; <- How to validate this? }